package game.logic.resolver;

public interface IShape
{
    long[] getCodes();

    static long translate(String shape)
    {
        long code = 0;
        for (char c : shape.toCharArray())
        {
            if ('0' == c || c == '1')
                code = (c - '0') | (code << 1);
        }
        return code;
    }
}
